package com.jiutong.meipenggang.ui.activitys;


import android.view.View;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.jiutong.meipenggang.R;
import com.jiutong.meipenggang.base.AppManager;
import com.jiutong.meipenggang.base.BaseActivity;

import butterknife.Bind;
import butterknife.OnClick;

/**
 * @author Veken
 */
public class AboutUsActivity extends BaseActivity {

    @Bind(R.id.rl_common_title_back)
    RelativeLayout rlCommonTitleBack;
    @Bind(R.id.tv_common_title)
    TextView tvCommonTitle;
    @Bind(R.id.iv_guanfang_introduce)
    ImageView ivGuanfangIntroduce;
    @Bind(R.id.iv_meiti_report)
    ImageView ivMeitiReport;
    @Bind(R.id.iv_guanfang_zizhi)
    ImageView ivGuanfangZizhi;

    @Override
    public int getLayoutResouceId() {
        return R.layout.activity_about_us;
    }

    @Override
    protected void initView() {
        super.initView();
        tvCommonTitle.setText("关于我们");
    }

    @OnClick({R.id.rl_common_title_back, R.id.iv_guanfang_introduce, R.id.iv_meiti_report, R.id.iv_guanfang_zizhi})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.rl_common_title_back:
                AppManager.getAppManager().finishActivity(this);
                break;
            case R.id.iv_guanfang_introduce:
                openActivity(IntroduceActivity.class);
                break;
            case R.id.iv_meiti_report:
                openActivity(ReportActivity.class);
                break;
            case R.id.iv_guanfang_zizhi:
                openActivity(CompanyZiZhiActivity.class);
                break;
            default:
        }
    }
}
